home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
TextObjectUtilities.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
5KB
|
139 lines
;
; File: TextObjectUtilities.a
;
; Contains: Text object Utilities Interfaces.
;
; Version: Technology: System 8
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__TEXTOBJECTUTILITIES__') = 'UNDEFINED' THEN
__TEXTOBJECTUTILITIES__ SET 1
IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
include 'ConditionalMacros.a'
ENDIF
IF &TYPE('__UNICODE__') = 'UNDEFINED' THEN
include 'Unicode.a'
ENDIF
IF &TYPE('__TEXTOBJECTS__') = 'UNDEFINED' THEN
include 'TextObjects.a'
ENDIF
IF &TYPE('__AEDATAMODEL__') = 'UNDEFINED' THEN
include 'AEDataModel.a'
ENDIF
IF FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE THEN
;
; extern OSStatus ConvertPStringToTextObject(ConstStr255Param srcString, TextEncoding srcEncoding, LocaleIdentifier localeID, TextObject oldTextObject, TextObject *newTextObject, OptionBits optionBits)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertPStringToTextObject
ENDIF
;
; extern OSStatus ConvertTextObjectToPString(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, StringPtr destString, ByteCount destMaxStringLength, TextEncoding destEncoding, TextObjectIndex *nextIndex)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertTextObjectToPString
ENDIF
;
; extern OSStatus ConvertCStringToTextObject(const char *srcString, TextEncoding srcEncoding, LocaleIdentifier localeID, TextObject oldTextObject, TextObject *newTextObject, OptionBits optionBits)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertCStringToTextObject
ENDIF
;
; extern OSStatus ConvertTextObjectToCString(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, char *destString, ByteCount destMaxStringLength, TextEncoding destEncoding, TextObjectIndex *nextIndex)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertTextObjectToCString
ENDIF
;
; extern OSStatus ConvertUnicodeStringToTextObject(const UniChar *srcString, ByteCount stringLength, TextEncoding srcEncoding, LocaleIdentifier srcLocaleID, TextObject oldTextObject, TextObject *newTextObject, OptionBits optionBits)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertUnicodeStringToTextObject
ENDIF
;
; extern OSStatus ConvertTextObjectToUnicodeString(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, UniChar *destString, ByteCount destMaxStringLength, TextEncoding destEncoding, TextObjectIndex *nextIndex, ByteCount *destLength)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertTextObjectToUnicodeString
ENDIF
;
; extern OSStatus ConcatTextObjects(ConstTextObject textObject1, ConstTextObject textObject2, TextObject *newTextObject, OptionBits optionBits)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConcatTextObjects
ENDIF
; Text object resource types
kTextObjResourceType EQU 'txto' ; single text object
kTextObjListResourceType EQU 'txt#' ; list of text objects
ENDIF
IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
;
; extern OSStatus GetTextObject(TextObject *newTextObject, short textObjResID)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetTextObject
ENDIF
;
; extern OSStatus GetTextObjectListCount(short textObjListResID, UInt16 *count)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetTextObjectListCount
ENDIF
;
; extern OSStatus GetIndTextObject(TextObject *newTextObject, short textObjListResID, UInt16 index)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetIndTextObject
ENDIF
ENDIF
IF FOR_SYSTEM8_PREEMPTIVE THEN
IF FOR_PTR_BASED_AE THEN
; The caller must provide the text object to be filled in.
;
; extern OSStatus ConvertAESubDescToTextObject(const AESubDesc *subDesc, TextObject textObject)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertAESubDescToTextObject
ENDIF
;
; extern OSStatus ConvertTextObjectToAEDesc(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, AEDesc *descriptor)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ConvertTextObjectToAEDesc
ENDIF
;
; extern OSStatus WriteTextObjectToAEStream(AEStream stream, ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION WriteTextObjectToAEStream
ENDIF
ENDIF
ENDIF
ENDIF ; __TEXTOBJECTUTILITIES__